<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/layouts/base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title class="title">登录</title>
	<style type="text/css">
		.control-label {
			font-weight:bold;
		}
	</style>
	<script type="text/javascript" src="${basePath}/static/web/js/login.js"></script>
</head>
<body>
	<div class="wrapper add-member-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-6 col-sm-offset-2">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5 class="title">登录</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                            <a class="close-link"><i class="fa fa-times"></i></a>
                        </div>
                    </div>
                    <div class="ibox-content" id="content">
                    <form id="loginForm" class="form-horizontal">
                       <div class="form-group m-t">
                          <label class="col-sm-3 control-label">登录名:</label>
			  				<div class="col-sm-8">
								<div class="input-icon right">
				    				<i class="fa"></i>
	                            	<input type="text" class="form-control has-error" required name="loginName"/>
                            	</div>
                           </div>
                       </div>
                       <div class="hr-line-dashed"></div>
                          <div class="form-group">
							<label class="col-sm-3 control-label">密码:</label>
							<div class="col-sm-8">
							<div class="input-icon right">
								<i class="fa"></i>
	                            <input type="password" class="form-control" required name="plainPassword"/>
                            </div>
                            </div> 
                          </div>
                       <div class="hr-line-dashed"></div>
                          <div class="form-group">
							<label class="col-sm-3 control-label">验证码:</label>
							<div class="col-sm-8">
								<div class="input-icon right">
									<i class="fa"></i>
                    				<input type="text" class="form-control" required minlength="4" name="imgCode" placeholder="输入验证码"/>
                    				<img id="captcha" class="J_codeimg" src="${basePath}/captcha" id="imgCode" onclick="this.src = '${basePath}/captcha?v=' + Math.random()"/>
                				</div>
                				<input type="checkbox" name="rememberMe" value="1"/>
								<label class="control-label">记住我</label>
                            </div> 
                         </div>
                       <div class="hr-line-dashed"></div>
                          <div class="form-group">
                             <div class="col-sm-8 col-sm-offset-2 add-submit">
                 				<input class="btn btn-primary" style="width:100%" type="button" id="loginSubmit" value="登录"/>
                 				<span>还没有账号?<a href="" id="toRegister">马上注册</a></span>
                             </div>
                         </div>
       				</form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>